package com.briup.cms.sevice;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.briup.cms.bean.User;
import com.briup.cms.bean.extend.UserExtend;

import java.util.List;

/**
 * @BelongsProject: cms
 * @BelongsPackage: com.briup.cms.sevice
 * @Author: Hrs
 * @CreateTime: 2024-11-21  11:19
 * @Description: TODO
 * @Version: 1.0
 */
public interface IUserService {

    User login(String username, String password);

    User queryById(Long id);
    // 新增用户
    void save(User user);

    void setVip(Long id);

    void update(User user);

    void deleteByBatch(List<Long> ids);

    IPage<UserExtend> query(Integer pageNum,
                            Integer pageSize,
                            String username,
                            String status,
                            Integer roleId,
                            Integer isVip);
}